package com.lite.business.service.contract;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lite.business.entity.contract.Contract;
import com.lite.business.entity.contract.ContractQueryWrapper;
import com.lite.business.entity.middletab.MiddleTab;
import com.lite.business.exception.BusinessException;
import com.lite.business.vo.contract.ContractVO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author stranger
 * @since 2022-10-25
 */
public interface ContractService extends IService<Contract> {


    ContractVO getContractInfoById(Integer contractId) throws BusinessException;

    List<Contract> listContractByPage(Integer page, Integer size, ContractQueryWrapper contractQueryWrapper) throws BusinessException;

    Boolean updateContractInfoById(Integer contractId, Contract contract) throws BusinessException;

    Boolean removeContractInfoById(Integer contractId) throws BusinessException;

    Boolean addContractInfo(ContractVO contractVO) throws BusinessException;

}
